In the afternoon, suddenly feel restless, probably because there is no good rest at noon. Laotaibuxiao is still doing the page integration thing, this is the work to do when the job. Then suddenly want to challenge the advanced point of the defect
Getting started with Linux: how to obtain the process ID (PID) in a script)
Question: I want to know the process id of the shell in the running script. How can I get the PID in the shell script.
When I execute a shell script, it starts a process
Common shell: -------------- from "laruence's Linux private dish"
In the early UNIX era, there were many developers, so shell had many versions based on the developer's differences, such
Frequently heard Bourne shell (SH ),C shell,Commonly used
I want to know the process ID of the running script shell. How do I get the PID in the shell script.When I execute a shell script, it launches a process called a child shell. As a child of the main shell, the child shell runs the command in the
1 " *.pid " ` 2 for inch $head _files 3 Do 4 ' {print $} ' | Xargs Kill-95 rm-f $file6 DoneCode as aboveExplain:1. Find all the PID files in the./fmsconf Directory2. Traverse the found file3. Start traversing4. Separate explanations:1. Cat
To say clear Systemd, you have to start with the Linux operating system started speaking. The startup of the Linux operating system starts with the BIOS, then the boot Loader loads into the kernel and initializes the kernel. The final step in kernel
What is a shell?Shell is the command interpreter, is the UNIX operating system user interface, the program from the user interface to get input information, the shell of the user program and its input translated into the operating system kernel
Call another script in shell script
Bash shell commands are divided into two types: External commands and Internal commands. External commands are implemented through system calls or independent programs, such as SED and awk. Internal commands are
Error:/usr/local/bin/stop.sh:line 3: [: 2151:unary operator expectedReason:The shell script name is stop_tomcat.sh and will never be executed else because the script itself contains the Tomcat,shell script to find out Stop_tomcat This process is the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.